package com.dkd.sbtz.domain;

import com.dkd.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
public class AssetNodeUsage {
    private Long assetId;
    private Integer status;
    private Long deptId;
    private String deptName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", dateFormat = "yyyy-MM-dd HH:mm:ss", width = 30)
    private LocalDateTime startTs;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", dateFormat = "yyyy-MM-dd HH:mm:ss", width = 30)
    private LocalDateTime endTs;

    private String reason;
    private String createdBy;
    private Integer openFlag;     // 只读: 生成列
    private Long usingDeptKey;    // 只读: 生成列
}
